<?php
include("db.php");
$sql = "SELECT * FROM `pagetype` WHERE page='".mysql_real_escape_string($_GET['page'])."'";
$result = mysql_query($sql,$connect) or die(mysql_error());
$row = mysql_fetch_array($result) or die(mysql_error());
#  {

  include( 'modules/'.$row['type'].'/index.php');
#  }

?>
